import request from '@/utils/request'

/* 列表分页*/
export function selectStockPage(data) {
  return request({
    url: '/erp/stock/selectStockPage',
    method: 'post',
    data: data
  })
}

/* 列表分页*/
export function selectStockList(data) {
  return request({
    url: '/erp/stock/selectStockList',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function saveStock(data) {
  return request({
    url: '/erp/stock/saveStock',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function updateStockById(data) {
  return request({
    url: '/erp/stock/updateStockById',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function selectStockById(data) {
  return request({
    url: '/erp/stock/selectStockById/' + data,
    method: 'post',
  })
}

/* 删除*/
export function deleteStockById(data) {
  return request({
    url: '/erp/stock/deleteStock/' + data,
    method: 'post'
  })
}
